package gdut.edu.demo02;

/**
 * @Description 栈的测试
 * @Author JiaFu
 * @Date 2022/7/6 16:11
 */
public class TestMyStack {
    public static void main(String[] args) {
        MyStack myStack = new MyStack();
//        int pop = myStack.pop();
        myStack.push(1);
        myStack.push(2);
        myStack.push(3);
        System.out.println(myStack.pop());
        System.out.println("myStack.peek() = " + myStack.peek());
        System.out.println(myStack.pop());
        System.out.println("myStack.peek() = " + myStack.peek());
        System.out.println("myStack.isEmpty() = " + myStack.isEmpty());
        System.out.println(myStack.pop());
        System.out.println("myStack.isEmpty() = " + myStack.isEmpty());
    }
}
